//
//  BaseLabel.m
//  Tour
//
//  Created by 张张烨 on 16/3/7.
//  Copyright © 2016年 张中烨. All rights reserved.
//

#import "BaseLabel.h"

@implementation BaseLabel

//- (instancetype)initWithFrame:(CGRect)frame
//{
//    self = [super initWithFrame:frame];
//    if (self) {
//        if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"Mode"] isEqualToString:@"night"]) {
//            self.backgroundColor = COLOR_CELL_NIGHT;
//            self.textColor = WHITE;
//        } else {
//            self.backgroundColor = COLOR_CELL_DAY;
//            self.textColor = BLACK;
//        }
//        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeColor:) name:@"changeColor" object:nil];
//        
//    }
//    return self;
//}
//
//-(void)dealloc
//{
//    [[NSNotificationCenter defaultCenter] removeObserver:self name:@"changeColor" object:nil];
//}
//
//- (void)changeColor:(NSNotification *)notification{
//    
//    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"Mode"] isEqualToString:@"night"]) {
//        self.backgroundColor = COLOR_CELL_NIGHT;
//        self.textColor = WHITE;
//    } else {
//        self.backgroundColor = COLOR_CELL_DAY;
//        self.textColor = BLACK;
//    }
//    self.backgroundColor = CLEAR;
//    
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
